package com.kll.carolinehmibiz.presentation.listener

import com.kll.carolinehmibiz.net.bean.AddPhoto
import com.kll.carolinehmibiz.net.bean.GetPhotoAlbumResponse

interface PhotoAlbumLovelyProtocol {

    interface IView {
        // 获取图片列表成功
        fun loadPhotoDataSuccessed(datas: ArrayList<GetPhotoAlbumResponse.PhotoAlbum>)
        // 获取图片列表失败
        fun loadPhotoDataFailed(code: Int, message: String)
        // 添加图片成功
        fun addPhotoSuccessed()
        // 添加图片失败
        fun addPhotoFailed(code: Int, message: String)
        // 删除图片成功
        fun delPhotoSuccessed()
        // 删除图片失败
        fun delPhotoFailed(code: Int, message: String)
    }

    interface IPresenter {
        // 获取图片列表
        fun loadPhotoDatas(isFristPage: Boolean)
        // 添加图片
        fun addPhoto(list: ArrayList<AddPhoto.Photo>)
        // 删除图片
        fun delPhoto(list: ArrayList<Int>)
    }

}